﻿using AutoMapper;
using Windows.Admin.Domain;
using Windows.Infrastructure.Share.Extensions;
using Windows.SeedWord;

namespace Windows.Admin.Application
{
    public class DtoToDomainMappingProfile : Profile
    {
        /// <summary>
        /// 配置构造函数，用来创建关系映射
        /// </summary>
        public DtoToDomainMappingProfile()
        {
            //CreateMap<OperateAddRequest, Operate>();
            //CreateMap<OperateModifyRequest, Operate>();

            //CreateMap<RoleInfo, Role>();

            CreateMap<AppSaveRequest, App>();
            CreateMap<RoleSaveRequest, Role>();
            CreateMap<UserSaveRequest, User>();
            CreateMap<OrganizationSaveRequest, Organization>();
            CreateMap<EmployeeSaveRequest, Employee>();
            //CreateMap<ModuleModifyRequest, Module>();

            //CreateMap<UserAddRequest, User>();
            //CreateMap<UserModifyRequest, User>();
            //CreateMap<UserInfo, User>();
            //CreateMap<ProfileRequest, User>();

            //CreateMap<LogOperateRequest, LogOperate>();
            //CreateMap<LogLoginRequest, LogLogin>();

            //CreateMap<OrganizationInfo, Organization>();

            //CreateMap<DictionaryAddRequest, Dictionary>();
            //CreateMap<DictionaryModifyRequest, Dictionary>();
        }
    }
}
